.class Lcom/htc/android/footprints/activity/FootprintCamera$5;
.super Ljava/lang/Object;
.source "FootprintCamera.java"

# interfaces
.implements Landroid/hardware/Camera$AutoFocusCallback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/htc/android/footprints/activity/FootprintCamera;->autoFocus()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/htc/android/footprints/activity/FootprintCamera;


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/activity/FootprintCamera;)V
    .locals 0
    .parameter

    .prologue
    .line 637
    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$5;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onAutoFocus(ZLandroid/hardware/Camera;)V
    .locals 3
    .parameter "focused"
    .parameter "camera"

    .prologue
    .line 639
    if-nez p1, :cond_0

    :try_start_0
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$5;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->isForceSnap:Z
    invoke-static {v1}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$1800(Lcom/htc/android/footprints/activity/FootprintCamera;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 640
    :cond_0
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$5;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    const/4 v2, 0x3

    #setter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mStatus:I
    invoke-static {v1, v2}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$1602(Lcom/htc/android/footprints/activity/FootprintCamera;I)I

    .line 641
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$5;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mSound:Lcom/htc/android/footprints/utils/SoundPlayer;
    invoke-static {v1}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$1900(Lcom/htc/android/footprints/activity/FootprintCamera;)Lcom/htc/android/footprints/utils/SoundPlayer;

    move-result-object v1

    invoke-virtual {v1}, Lcom/htc/android/footprints/utils/SoundPlayer;->prepareCarmerFocused()V

    .line 642
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$5;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mSound:Lcom/htc/android/footprints/utils/SoundPlayer;
    invoke-static {v1}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$1900(Lcom/htc/android/footprints/activity/FootprintCamera;)Lcom/htc/android/footprints/utils/SoundPlayer;

    move-result-object v1

    invoke-virtual {v1}, Lcom/htc/android/footprints/utils/SoundPlayer;->play()V

    .line 643
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$5;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mImageCapture:Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;
    invoke-static {v1}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$1700(Lcom/htc/android/footprints/activity/FootprintCamera;)Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;

    move-result-object v1

    invoke-virtual {v1}, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->onSnap()V

    .line 652
    :goto_0
    return-void

    .line 645
    :cond_1
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$5;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    const/4 v2, 0x1

    #setter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mStatus:I
    invoke-static {v1, v2}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$1602(Lcom/htc/android/footprints/activity/FootprintCamera;I)I

    .line 646
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$5;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    const/4 v2, 0x1

    #calls: Lcom/htc/android/footprints/activity/FootprintCamera;->takePicture(Z)V
    invoke-static {v1, v2}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$000(Lcom/htc/android/footprints/activity/FootprintCamera;Z)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 648
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 649
    .local v0, e:Ljava/lang/Exception;
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 650
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$5;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    invoke-virtual {v1}, Lcom/htc/android/footprints/activity/FootprintCamera;->finish()V

    goto :goto_0
.end method
